<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
<!-- search -->
<div class="search">
    <dl class="section">
        <dt>区域：</dt>
        <dd>
            <?php foreach( $zone as $k => $single ) { ?>
            <a href="<?php my_url($current, 'zone', $single['id']); ?>"><?php echo $single['name']; ?></a>
            <?php } ?>
            <?php if(chk_permission('zone')){ ?>
            <a href="<?php my_url('admin', 'zone'); ?>">管理&raquo;</a>
            <?php } ?>
        </dd>
    </dl>
    <dl class="section">
        <dt>金额：</dt>
        <dd>
            <?php foreach( $priceRange as $single ) { ?>
            <a href="<?php my_url($current, 'price', $single['id']); ?>"><?php echo $single['name']; ?></a>
            <?php } ?>
        </dd>
    </dl>
    <dl class="section">
        <dt>厅室：</dt>
        <dd>
            <?php foreach( $room as $k => $single ) { ?>
            <a href="<?php my_url($current, 'room', $single['id']); ?>"><?php echo $single['name']; ?></a>
            <?php } ?>
            <?php if(chk_permission('room')){ ?>
            <a href="<?php my_url('admin', 'room'); ?>">管理&raquo;</a>
            <?php } ?>
        </dd>
    </dl>
    <dl class="section s">
        <dd>
        <form method="get" action="<?php my_url('query'); ?>">
        <input type="text" name="s" id="search" class="txtbox keyword" value="<?php echo $keyword; ?>" />
        <input type="submit" value="搜索" class="sbtn" />
        </form>
        </dd>
    </dl>
</div>
<!-- search -->